package com.xlobo.api.query.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.xlobo.api.query.parameter.QueryFailTempBillInfosListBean;
import com.xlobo.api.query.service.QueryFailTempBillInfosListCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;
/**
*获取批次处理记录中失败的记录
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_QueryFailTempBillInfosList{
	private static QueryFailTempBillInfosListBean queryfailtempbillinfoslistBean;
	private static QueryFailTempBillInfosListCall queryfailtempbillinfoslistCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("获取批次处理记录中失败的记录");
	}

	@Before
	public void caseUp() {
		queryfailtempbillinfoslistBean=new QueryFailTempBillInfosListBean();
		queryfailtempbillinfoslistCall=new QueryFailTempBillInfosListCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(queryfailtempbillinfoslistCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_QueryFailTempBillInfosList_001() {
		Logger.start(true,"添加直播商品成功");
		try {
			queryfailtempbillinfoslistBean.setPackageId("56645");
			queryfailtempbillinfoslistCall.setData(queryfailtempbillinfoslistBean);
			queryfailtempbillinfoslistCall.callService();			
			Logger.comment("queryfailtempbillinfoslistCall send:" + queryfailtempbillinfoslistCall.getEntityString());
			Logger.comment("queryfailtempbillinfoslistCall response:" + queryfailtempbillinfoslistCall.getReturnData());
			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}